package com.cms.framework.web;

import java.io.Serializable;
import java.util.Map;

/** 
* Json  基类
* @author zhoutanxin@hotmail.com  
* @date 2018年11月8日 下午10:52:58 
*  
*/
public class JsonResultMap implements Serializable {

    /** serialVersionUID */
    private static final long serialVersionUID = 8062518950101684304L;
    
   /**
   * 状态：
   * 	101   成功
   *    102 返回值为空
   *    201 缺少参数
   *    202 检查后无法操作
   *    301 失败
   *    401 服务器端连接失败
   *
   */
  private Integer state;

  /**
   * 提示信息
   */
  private String msg;

  /**
   * 数据
   */
  private Map<String, Object> data;

  public JsonResultMap() {
    super();
    state=JsonStateEnum.SUCCESS.value;
    msg=JsonStateEnum.SUCCESS.label;
  }

  public JsonResultMap(Integer state, String msg) {
    super();
    this.state = state;
    this.msg = msg;
  }

  public JsonResultMap(Integer state, String msg, Map<String, Object> data) {
    super();
    this.state = state;
    this.msg = msg;
    this.data = data;
  }





public Integer getState() {
	return state;
}

public void setState(Integer state) {
	this.state = state;
}

public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public Map<String, Object> getData() {
    return data;
  }

  public void setData(Map<String, Object> data) {
    this.data = data;
  }

}
